Namespaces | Functions | Variables
MultiLightCtrl_ImageStitching.py File Reference

Namespaces

 MultiLightCtrl_ImageStitching
 

Functions

def decoding_char (ctypes_char_array)
 
def print_devices_info (deviceList)
 

Variables

 currentsystem = platform.system()
 
 input_func = raw_input
 
int exposure_num = 0
 
list HB_format_list
 
 SDKVersion = MvCamera.MV_CC_GetSDKVersion()
 
 deviceList = MV_CC_DEVICE_INFO_LIST()
 
tuple tlayerType
 
 ret = MvCamera.MV_CC_EnumDevices(tlayerType, deviceList)
 
 nConnectionNum = input_func("please input the number of the device to connect:")
 
 str_exposure_num = input_func("please input current exposure number:")
 
 cam = MvCamera()
 
 stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents
 
 nPacketSize = cam.MV_CC_GetOptimalPacketSize()
 
 stOutFrame = MV_FRAME_OUT()
 
 stDecodeParam = MV_CC_HB_DECODE_PARAM()
 
 stReconstructParam = MV_RECONSTRUCT_IMAGE_PARAM()
 
list dst_buffer_list = []
 
 nDevPayloadSize = c_uint64()
 
 nMemAlignment = c_uint()
 
 nPayloadSize = nDevPayloadSize.value
 
 pSrcBuf
 
 nSrcLen
 
 pDstBuf
 
 nDstBufSize
 
 nWidth
 
 nHeight
 
 enPixelType
 
 pSrcData
 
 nSrcDataLen
 
 nExposureNum
 
 enReconstructMethod
 
 dst_buffer_len = int(stReconstructParam.nSrcDataLen/exposure_num)
 
tuple dst_buffer = (c_ubyte * dst_buffer_len)()
 
 pBuf
 
 nBufSize
 
string file_name
 
string c_file_path = file_name.encode('ascii')
 
 stSaveParam = MV_SAVE_IMAGE_TO_FILE_PARAM_EX()
 
 nDataLen
 
 sub_len = stReconstructParam.stDstBufList[i].nBufLen
 
tuple img_buff = (c_ubyte * stSaveParam.nDataLen)()
 
 pData
 
 enImageType
 
 pcImagePath
 
 iMethodValue